package cc.lucien.service.impl;

import cc.lucien.entity.User;
import cc.lucien.repository.UserRepository;
import cc.lucien.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lucien-ma
 * @date 2021/9/12
 * @apiNote
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserRepository userRepository;

    @Override
    public List<User> findAll() {
        return userRepository.findAll();
    }
}
